{extend name='common/_container'}
{block name="content"}
<div class="ibox float-e-margins">
    <input type="hidden" name='id' id='id' value="{$info.id}"/>
    <div class="ibox-content">
        <div class="form-horizontal" id="CodeInfoForm">
            <div class="row">
                <div class="col-sm-12">
                    <!-- form start -->
                    <div class="form-group">
                        <label class="col-sm-2 control-label">VIP会员：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="vip_url" name="vip_url" class="form-control"
                                   placeholder="VIP会员" value="{$info.vip_url}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">红心充值：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="hx_url" name="hx_url" class="form-control"
                                   placeholder="红心充值" value="{$info.hx_url}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">会员购买：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="hy_url" name="hy_url" class="form-control"
                                   placeholder="会员购买" value="{$info.hy_url}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">置顶购买：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="top_url" name="top_url" class="form-control"
                                   placeholder="置顶购买" value="{$info.top_url}">
                        </div>
                    </div>
                   <div class="form-group">
                        <label class="col-sm-2 control-label">红心名称：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="hx_name" name="hx_name" class="form-control"
                                   placeholder="红心名称" value="{$info.hx_name}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">置顶名称：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="top_name" name="top_name" class="form-control"
                                   placeholder="置顶名称" value="{$info.top_name}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">悬赏名称：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="xs_name" name="xs_name" class="form-control"
                                   placeholder="悬赏名称" value="{$info.xs_name}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">会员特权名称：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="hytq" name="xs_name" class="form-control"
                                   placeholder="会员特权名称" value="{$info.hytq}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">专属红娘服务：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="zshnfw" name="zshnfw" class="form-control"
                                   placeholder="专属红娘服务" value="{$info.zshnfw}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">赠送红心：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="zshx" name="zshx" class="form-control"
                                   placeholder="赠送红心" value="{$info.zshx}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">相亲活动：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="xqhd" name="xqhd" class="form-control"
                                   placeholder="相亲活动" value="{$info.xqhd}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">免费录入：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="mflr" name="mflr" class="form-control"
                                   placeholder="免费录入" value="{$info.mflr}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">红心充值：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="hxcz" name="hxcz" class="form-control"
                                   placeholder="红心充值" value="{$info.hxcz}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">我的置顶：</label>
                        <div class="col-sm-9">
                            <input type="text" autocomplete="off" id="wdzd" name="wdzd" class="form-control"
                                   placeholder="我的置顶" value="{$info.wdzd}">
                        </div>
                    </div>


                    <!-- form end -->
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="row btn-group-m-t">
                <div class="col-sm-9 col-sm-offset-1">
                    <button type="button" class="btn btn-primary" onclick="CodeInfoDlg.update()" id="ensure">
                        <i class="fa fa-check"></i>&nbsp;保存
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="__PUBLIC__/static/js/upload.js" charset="utf-8"></script>
<script src="__PUBLIC__/static/js/plugins/layui/layui.js" charset="utf-8"></script>
<script src='__PUBLIC__/static/js/plugins/paixu/jquery-migrate-1.1.1.js'></script>
<script src='__PUBLIC__/static/js/plugins/paixu/jquery.dragsort-0.5.1.min.js'></script>
<script>
    layui.use(['form'], function () {
    });
    laydate.render({elem: '#createtime', type: 'datetime', trigger: 'click'});
    var CodeInfoDlg = {
        CodeInfoData: {},
        validateFields: {}
    }

    CodeInfoDlg.collectData = function () {
        this.set('id').set('wxapp_id').set('vip_url').set('hx_url').set('hy_url').set('top_url').set('hx_name').set('top_name').set('xs_name').set('mflr').set('xqhd').set('zshx').set('zshnfw').set('hytq').set('hxcz').set('wdzd');
    };

    CodeInfoDlg.update = function () {
        this.clearData();
        this.collectData();
        if (!this.validate()) {
            return;
        }
        var ajax = new $ax(Feng.ctxPath + "/ZhCurrencySetu/update", function (data) {
            if ('00' === data.status) {
                Feng.success(data.msg, 1000);
            } else {
                Feng.error(data.msg + "！", 1000);
            }
        })
        ajax.set(this.CodeInfoData);
        ajax.start();
    };


</script>
<script src="__PUBLIC__/static/js/base.js" charset="utf-8"></script>
{/block}
